package com.ksd.common.core.response;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 飞哥
 * @date 2023-08-02$ 12:18$
 */
@Getter
@AllArgsConstructor
public enum ResponseEnum {

    /**
     * 成功
     */
    SUCCESS(20000,"SUCCESS","成功"),
    /**
     * 错误
     */
    ERROR(40001,"ERROR","错误"),
    /**
     * 参数错误
     */
    ERROR_PARAM(40002,"ERROR_PARAM","参数错误"),
    /**
     * 无权访问
     */
    ACCESS_DENIED(40003,"ACCESS_DENIED","无权访问，必须携带Token"),
    /**
     * 需要登录
     */
    NEED_LOGIN(40004,"NEED_LOGIN","需要登录"),
    NEED_LOGIN_BEN(40004,"NEED_LOGIN_BEN","账号已被封禁！"),
    LOGIN_OUT_TIME(40004,"NEED_LOGIN","登录已过期，请重新登录"),
    NEED_NOSAME_LOGIN(50004,"NEED_LOGIN","你的账号在别的地方登录了!"),
    /**
     * 服务错误
     */
    SERVER_ERROR(40005,"SERVER_ERROR","服务错误"),

    REQUESTS_ARE_TOO_FREQUENT(40006, "SERVER_ERROR","操作过于频繁，请稍后再试"),

    ARTICLES_NOT_FOUND(40007,"SERVER_ERROR","文章不存在！！！"),
    ADVERT_SORTED_ERROR(40008,"SERVER_ERROR","该位置已添加广告！！！"),
    ARTICLE_COMMENT_ERROR(40009,"SERVER_ERROR","该文章禁止评论！！！"),
    UPLOAD_ERROR_2000(2000, "UPLOAD_SERVER_ERROR","上传失败"),
    CATEGORY_DELETE_ERROR(40010, "CATEGORY_DELETE_ERROR","该分类下有文章禁止删除！"),
    CATEGORY_NAME_ERROR(40011, "CATEGORY_NAME_ERROR","该分类名称已重复使用！"),
    ADVERTISEMENT_ERROR(40012, "ADVERTISEMENT_ERROR","该广告商下面有正在启用的广告禁止删除！"),
    ADVERT_STATUS_ERROR(40013, "ADVERT_STATUS_ERROR","该广告的广告商正在禁用中请开启后在启用该广告！"),
    COLLECT_ALREADY_EXISTS_ERROR(40014, "ALREADY_EXISTS_ERROR","收藏已存在！"),
    COMMENT_ALREADY_EXISTS_ERROR(40015, "COMMENT_ALREADY_EXISTS_ERROR","请不要重复评论！"),
    REPORT_ALREADY_EXISTS_ERROR(40016, "COMMENT_ALREADY_EXISTS_ERROR","请不要重复举报！"),
    COMMENT_NOT_UNLOCK_ERROR(40017, "COMMENT_ALREADY_EXISTS_ERROR","请解锁或预约后操作！"),
    LOGIN_ERROR(40018,"LOGIN_ERROR","用户名或密码错误！"),
    REGISTER_MEMBER_EXIST_ERROR(40019,"REGISTER_MEMBER_EXIST_ERROR","用户名已被使用！"),
    VERIFY_CODE_ERROR(40020,"VERIFY_CODE_ERROR","验证码错误！"),
    MEMBER_IS_NOT_BIND_EMAIL_ERROR(40021,"MEMBER_IS_NOT_BIND_EMAIL_ERROR","请先绑定邮箱！"),
    COMMENT_IS_UNLOCK_ERROR(40021, "COMMENT_IS_UNLOCK_ERROR","已解锁，请勿重复解锁！"),
    UNLOCK_PERMISSION_ERROR(40022,"UNLOCK_PERMISSION_ERROR","没有预约或解锁权限！"),
    IS_NOT_ENOUGH_ERROR(40023,"IS_NOT_ENOUGH_ERROR","用户呱币不足！"),
    FILE_NOT_UPLOAD_ERROR(10016,"ADVERT_STATUS_ERROR","文件还未上传成功，请稍后再试！"),
    UNLOCK_IS_NOT_CONFIRM_ERROR(40024,"UNLOCK_IS_NOT_CONFIRM_ERROR","请在确定后添加评论！"),
    MEMBER_IS_NOT_MERCHANT_ERROR(40025,"MEMBER_IS_NOT_MERCHANT_ERROR","请开通商户后使用！"),
    MERCHANT_IS_UPPER_LIMIT_ERROR(40026,"MERCHANT_IS_UPPER_LIMIT_ERROR","商品数量以达到上限，请升级！"),
    MERCHANT_ADDITIONS_UPPER_LIMIT_ERROR(40027,"MERCHANT_ADDITIONS_UPPER_LIMIT_ERROR","今日添加商品以达到上限，请升级！"),
    MERCHANT_UNABLE_BR_MEMBER_ERROR(40028,"MERCHANT_UNABLE_BR_MEMBER_ERROR","商户无法开通用户会员！"),
    MEMBER_UNABLE_RENEW_ERROR(40029,"MEMBER_UNABLE_RENEW_ERROR","会员无法续费或降级！"),
    USER_IS_NOT_MEMBER(40030,"USER_IS_NOT_MEMBER","请开通会员！"),
    MERCHANT_IS_NOT_RESERVATION(40031,"MERCHANT_IS_NOT_RESERVATION","商户没有开启预约功能！"),
    SOCIAL_ID_NOT_FOUND(40032, "ADVERT_STATUS_ERROR","该帖子不存在"),
    COLLECT_FAILURE(40033,"ADVERT_STATUS_ERROR","收藏失败！"),
    MERCHANT_USER_ERROR(40034,"MERCHANT_ADD_USER_ERROR","用户不存在！"),
    MERCHANT_BIND_USER_ERROR(40034,"MERCHANT_BIND_USER_ERROR","该用户已经绑定过了！"),
    EMAIL_OR_USERNAME_ERROR(40035,"EMAIL_ERROR","邮箱错误或用户名错误！"),
    CONTENT_NULL_OR_TYPE_NULL_ERROR(40036,"CONTENT_NULL_OR_TYPE_NULL_ERROR","收藏内容或者收藏类型不能为空！"),
    NOTICE_IS_NULL_ERROR(40037,"NOTICE_IS_NULL_ERROR","消息不存在！"),
    COMMODITY_IS_NULL_ERROR(40038,"NOTICE_IS_NULL_ERROR","商品不存在！"),
    RECHARGE_PERMISSION_ERROR(40039,"RECHARGE_PERMISSION_ERROR","商户不可以充值或开通会员！"),
    MERCHANT_IS_BAN_OR_END(40040,"MERCHANT_IS_BAN_OR_END","商户被禁用或者商户时间到期！"),
    COMMENT_REPLY_NO_DELETED(10013, "ADVERT_STATUS_ERROR","您没有权限删除"),
    COMMIT_SOCIAL_ERROR(10014, "ADVERT_STATUS_ERROR","你没有权限发布帖子！"),
    SOCIAL_COUNT_ERROR(10015, "ADVERT_STATUS_ERROR","今天发布帖子数已用完！"),
    SOCIAL_CATEGORY_ERROR(10016, "ADVERT_STATUS_ERROR","分类不存在！"),
    SOCIAL_USER_ERROR(10016, "ADVERT_STATUS_ERROR","用户不存在！"),
    APP_VERSION_ERROR(10017, "ADVERT_STATUS_ERROR","app版本已存在！"),
    CODE_DOWNLOAD_ERROR(10018, "ADVERT_STATUS_ERROR","邀请码不存在！"),

    ;

    /**
     * 状态码
     */
    private Integer code;

    /**
     * 代号标识
     * */
    private String codeDesc;

    /**
     * 状态描述
     */
    private String msg;
}
